package com.zpark.oop.day04;

/**
 * @PackageName: com.zpark.oop.day04
 * @ClassName: Demo02
 * @Description:
 * @author: RZS
 * @date: 2024/10/11  14:48
 */
public class Demo02 {
    public static void main(String[] args) {
        // 创建zhangsan类对象
        ZhangSan zs = new ZhangSan();
        // 访问zs对象的属性和方法
        zs.name = "张三";
        zs.number = "001";
        zs.age = 18;
        zs.school = "贵州民族大学";
        zs.study();

        zs.arr = new int[]{1,2,3};
        zs.run();

        int i = zs.hashCode();

        // 创建dac对象
        DaCui dc = new DaCui();
        dc.name = "大锤";
    }
}
